/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.yy.bugzillahelp.action;

//import java.io.IOException;
//import org.jsoup.Jsoup;
//import org.jsoup.nodes.Document;
//import org.jsoup.nodes.Element;
//import org.jsoup.select.Elements;
//
///**
// *
// * @author Alan
// */
//public class JsoupTest {
//    public static void main(String[] args) throws IOException {
////        aa();
//    }
//
//    private static void aa() throws IOException {
//        Document doc = Jsoup.connect("http://cn.gobsnet.com:8090/bugzilla/show_bug.cgi?ctype=xml&id=2").get();
//        String title = doc.title();
//        System.out.println(title);
//        Element body = doc.body();
//        Elements elementsByTag = body.getElementsByTag("short_desc");
//        System.out.println(elementsByTag);
//        System.out.println(elementsByTag.first().ownText());
//        Elements allElements = body.getAllElements();
//        System.out.println("allElements.size()="+allElements.size());
////        for (int i = 0; i < allElements.size(); i++) {
////            System.out.println(allElements.get(i));            
////        }
//    }
//}
